/*
 * @Overview:   product
 * @Author:     Zi_Jun
 * @Email:      zijun2030@163.com
 * @Date:       2020/12/8 15:10
 * @Mark:       //
 */

import { packAxios } from '/@/utils/axios';

enum Api {
  VERSION_PRODUCT_LIST = '/version/product_list',
  VERSION_VERSION_LIST = '/version/version_list',
  VERSION_VERSION_ADD = '/version/version_add',
  VERSION_LOCK_STATUS = '/version/lock_status_modify',
}

export function getVersionProductList() {
  return packAxios.request({
    url: Api.VERSION_PRODUCT_LIST,
    method: 'GET',
  });
}

export function getVersionVersionList(params: any) {
  return packAxios.request({
    url: Api.VERSION_VERSION_LIST,
    method: 'GET',
    params,
  });
}

export function postVersionVersionAdd(data: any) {
  return packAxios.request({
    url: Api.VERSION_VERSION_ADD,
    method: 'POST',
    data,
  });
}

export function postVersionLockStatus(data: any) {
  return packAxios.request({
    url: Api.VERSION_LOCK_STATUS,
    method: 'POST',
    data,
  });
}
